package com.zhangxujie.litewords.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.io.Serializable;

@Entity
public class Achievement implements Serializable {

    @PrimaryKey
    public Integer id;

    @ColumnInfo(name = "name")
    public String achievementName;

    //1解锁  0未解锁
    @ColumnInfo(name = "status")
    public Integer status;

    @ColumnInfo(name = "timestamp")
    public String timestamp;

    @Override
    public String toString() {
        return "Achievement{" +
                "id=" + id +
                ", achievementName='" + achievementName + '\'' +
                ", status=" + status +
                ", timestamp='" + timestamp + '\'' +
                '}';
    }
}
